package com.evaluationSystem.service;

import com.evaluationSystem.config.R;
import com.evaluationSystem.entity.Appraise;
import com.evaluationSystem.entity.dto.AppraiseDto;
import com.evaluationSystem.entity.dto.Fraction;
import com.evaluationSystem.entity.vo.AnalyseOwnVo;
import com.evaluationSystem.entity.vo.AppraiseDetail;
import com.evaluationSystem.entity.vo.AppraiseVo;
import com.evaluationSystem.util.PageData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.*;

public interface AppraiseService {
    AnalyseOwnVo getEvaluateObject(Appraise appraise);

//    PageData<Appraise> getAppraisePage(Appraise appraise);

    PageData<AppraiseVo> getAppraisePage(Appraise appraise);

    public PageData<Appraise> selectAppraiseList(Appraise appraise);
    void exportAppraise(HttpServletResponse response, Map<String, Object> params) throws Exception;

    HashMap<String, Object> uploadAppraise(MultipartFile multipartFile, String questionId);

    void insertAppraise(AppraiseDto appraiseDto);

    void updateAppraise(AppraiseDto appraiseDto);

    PageData<Appraise> getAppraiseShow(Appraise  appraise );

    void deleteAppraise(Map<String, Object> map);

    AppraiseDetail getAppraiseDetail(String appraiserPhone, String assessedId, String questionId);

    R<String> sendAnswerMessage(String questionId, List appraiserPhoneList);

    AnalyseOwnVo getEvaluateObjects(Appraise appraise);

    void deleteQuestionId(String questionId);

    List<Fraction> getfraction();
}
